/*
 * Class name: 			SGroup
 * Class description: 	The SGroup class is the class interface between
 * 						the back-end and the front end, it is a representative
 * 						class of ShoppingGroup without the conflicting back-end
 * 						fields and libraries
 * Project:				GrocerWE
 */
package com.cse210.grocerwe.client;
import java.io.Serializable;

public class SGroup implements Serializable{
	
	//used for serialization
	private static final long serialVersionUID = 1L;
	
	//String representation of key
	private String key;
	
	 //name of list
    private String name;
    
    //description of list
    private String description;
    
    //creator of list
    private String creator;
    
    //is this a users private list?
    private boolean privateList;
    
    /*
     * Constructors
     */
    public SGroup()
    {
    	this.key = null;
    	this.name = null;
    	this.description = null;
    	this.creator = null;
    	this.privateList = false;
    } 
    public SGroup(String name, String creator, boolean isPrivate)
    {
    	this.key = null;
    	this.name = name;
    	this.description = null;
    	this.creator = creator;
    	this.privateList = isPrivate;
    }
    public SGroup(String key, String name, String description, String creator, boolean isPrivate)
    {
    	this.key = key;
    	this.name = name;
    	this.description = description;
    	this.creator = creator;
    	this.privateList = isPrivate;
    }
    
    
    /*
     * Getters
     */
    public String getKey()
    {
    	return key;
    }
    public String getName()
    {
    	return name;
    }
    public String getDescription()
    {
    	return description;
    }
    public String getCreator()
    {
    	return creator;
    }
    public boolean isPrivate()
    {
    	return privateList;
    }  
    
    /*
     * Setters
     */
    public void setName(String name)
    {
    	this.name = name;
    }
    public void setDescription(String description)
    {
    	this.description = description;
    }
    public void setCreator(String creator)
    {
    	this.creator = creator;
    }
    public void setPrivacy(boolean privacy)
    {
    	privateList = privacy;
    }
}
